package org.jeecg.board.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.board.dto.BoardDataDTO;
import org.jeecg.board.dto.LineAndonBoardDTO;
import org.jeecg.board.dto.LineBoardBarDTO;

import java.util.List;
import java.util.Map;

/**
 * &#064;Description
 * &#064;Author  LiCY
 * &#064;Date  2023/4/25
 */
@Mapper
public interface PlantBoardMapper {

    List<BoardDataDTO> getMonthScrapList(Map<String, Object> map);

    List<BoardDataDTO> getMonthPackList(Map<String, Object> map);

    List<LineBoardBarDTO> getYearPackList(Map<String, Object> map);

    List<BoardDataDTO> getMonthPackPartNoList(Map<String, Object> map);

    Integer getPlantParamTotal(Map<String, Object> param,@Param("name") String name);

    List<BoardDataDTO> getPlantParamList(Map<String, Object> param, @Param("name") String name);

    List<LineBoardBarDTO> getPlantPackList(Map<String, Object> param);

    List<BoardDataDTO> getPlantPartNoList(Map<String, Object> param);

    Integer getPlantYearTotal();

    Double getTheoreticalProductionTime(@Param("startTime") String startTime);

    Double getLineAvailability(@Param("startTime") String startTime);

    int getMachinestate();

    int getAndonstate();

    Double getLineBottleneckDowntime(String string);
}
